<template>
  <div class="animation-box"></div>

</template>

<script>
  export default {
    name: 'search',
    props:['model']
  }
</script>

<style scoped>
.animation-box{
  margin: auto;
  width: 100;
  height:100;
  animation: example 2s infinite;
  animation-delay:2s;
  animation-timing-function:ease-in;
  animation-fill-mode: both;
}

.animation-box:hover{
  background-color: red;
  animation-play-state:paused;
}

/* 动画代码 */
@keyframes example {
  0% {background-color: white;
      border: 40px solid transparent; }

  10%{background-color: white;
      border: 40px solid transparent;
      border-top: red;}

  20%{background-color: white;
      border: 40px transparent;
      border-left:40px solid green;}

  30%{background-color: white;
      border: 40px transparent;
      border-left:40px solid lightskyblue;}

  40%{background-color: white;
      border: 40px transparent;
      border-left:40px solid red;}

  50% {background-color: yellow; }

  100% {background-color: pink; }
}


</style>